using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QXFramework.Net;

public class MessageData : MessageBase
{
    public int id;
}

public class Main : MonoBehaviour
{
    // Start is called before the first frame update，
    void Start()
    {
        NetManager.Instance.Connect("127.0.0.1", 8888);
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            MessageBase msg = new MessageData() { id = 100 };
            NetManager.Instance.SendMessage(msg, ServerType.Master);
        }
    }
}
